/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prjtgl.controler.recruteur;

import org.zkoss.bind.annotation.AfterCompose;
import org.zkoss.bind.annotation.ContextParam;
import org.zkoss.bind.annotation.ContextType;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.Selectors;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zul.Div;
import org.zkoss.zul.Html;
import org.zkoss.zul.Label;
import prjtgl.metier.comptes.Recruteur;
import prjtgl.util.SessionUtilisateur;

/**
 *
 * @author Adrien
 */
public class SonProfil extends SelectorComposer {
    
    
    @Wire 
    Div societe;
    
    @Wire
    Label description;
    
    
    @AfterCompose
	public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
		Selectors.wireComponents(view, this, false);
	
                Recruteur r = (Recruteur)SessionUtilisateur.getUtilisateur();
                societe.appendChild(new Html("<h1>"+r.getSociete().getNom()+"</h1>"));
                description.setValue(r.getDescription());
	}
    
}
